<?php

/**
 * Flow models 
 * 
 * Flow models in console
 *
 * PHP Version: 1.2.3
 * 
 * @author Johari <joharijumali@gmail.com>
 */

/**
 * Class Flow
 * 
 * Class Flow in console models
 *
 * @author Johari <joharijumali@gmail.com>
 */

class Console_Flow extends Eloquent
{

    public static $timestamps = true;
    public static $table = 'sys_flow';
    public static $key = 'sf_id';
	
	public static function arrayFlows()
    {
        $flowslist = Console_Flow::order_by('sf_id', 'asc')->get();

        $arrayFlows = array('Sila Pilih');

        foreach ($flowslist as $value) {
            $arrayFlows[$value->sf_id] = $value->sf_name;
        }

        return $arrayFlows;
    }

}

?>